<?php
require 'conn.php';
date_default_timezone_set("Etc/GMT-3");

$name = trim($_POST['name']);
$link = $_POST['link'];
//$favicon = $_POST['favicon'];
$email = $_POST['email'];
$classname = $_POST['classname'];
$info = $_POST['info'];
$time = date("Y-m-d H:i:s");

$query = mysql_query("insert into links (name,link,email,classname,info,time) values ('$name','$link','$email','$classname','$info','$time')");
if ($query) {
	$su = 1;
}else {
	$su = 0;
}
header("Location: success.php?su=$su");